package org.abio.XasML.util
{
	public class ArrayUtil
	{
		public function ArrayUtil()
		{
		}

		static public function createByObject(obj:Object):Array{
			var result:Array=new Array();
			for each(var tempObj:Object in obj){
				result.push(tempObj);
			}
			return result;
		}
		
		static public function filterByType(array:Array, type:Class):Array{
			return array.filter(function filter(element:*, index:int, arr:Array):Boolean{
				return element is type;
			});
		}
	}
}